package cloud.simple.service.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cloud.simple.service.dao.UserDao;
import cloud.simple.service.model.User;
import cloud.simple.service.service.UserService;

@Transactional
@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserDao userDao;
	
	protected  UserDao getUserDao() {
		return userDao;
	}
	
	@Override
	public List<User> searchAll() {
		
		return getUserDao().findAll();
	}
	
}
